package com.csp;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * @author:chengsp
 * @createTime:2019/8/22 11:07
 */
public class TestInvocationHandler implements InvocationHandler {
    private Object target;

    public TestInvocationHandler(Object target) {
        this.target = target;
    }

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        System.out.println("之前");
        //Object invoke = method.invoke(target, args);
        System.out.println("之后");
        return null;
    }
}
